package com.lan.springbootdruid.datasource;

import com.lan.springbootdruid.enums.DataSourceKey;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author: Lan
 * @date: 2019/5/5 18:20
 * @description:数据源注解
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface TargetDataSource {

    DataSourceKey dataSourceKey() default DataSourceKey.DB_MASTER;
}
